package main

import (
	"fmt"
)

func main() {

	whatAmI := func(i interface{}) {
		switch i.(type) {
		case bool:
			fmt.Println("I'm a bool")
		case int:
			fmt.Println("I'm a int")
		default:
			fmt.Printf("Don't know type %T\n")
		}
	}

	whatAmI(1)
}
